<!-- xml version="1.0" encoding="utf-8" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
	<title>De Bello Gallico</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<link href="../flashcard.css" rel="stylesheet" type="text/css">
</head>


<script type="text/javascript">
var sentences = [
  [ ["Gallia", "est", "omnis", "divisa", "in", "partes", "tres,"],
    ["Gaul", "is", "all", "divided", "into", "parts", "three,"] ],
  [ ["quarum", "unam", "incolunt", "Belgae,", "aliam", "Aquitani,"],
    ["of-which", "one", "inhabit", "Belgae,", "another", "Aquitani,"] ],
  [ ["tertiam", "qui", "ipsorum", "lingua", "Celtae,", "nostra", "Galli", "appellantur."],
    ["third-[those]", "who", "of-themselves", "in-language", "Kelts,", "in-ours", "Gauls", "are-called."] ],
  [ ["Hi", "omnes", "lingua,", "institutis,", "legibus", "inter", "se", "differunt."],
    ["These", "all", "in-language,", "in-institutions,", "in-laws", "among", "themselves", "differ."] ],
  [ ["Gallos", "ab", "Aquitanis", "Garumna", "flumen,", "a", "Belgis", "Matrona", "et", "Sequana", "dividit."],
    ["Gauls", "from", "Aquitani", "Garumna", "river,", "from", "Belgae", "Matrona", "and", "Sequana", "divides."] ],
  [ ["Horum", "omnium", "fortissimi", "sunt", "Belgae,"],
    ["Of-these", "all", "most-brave", "are", "Belgae,"] ],
  [ ["propterea", "quod", "a", "cultu", "atque", "humanitate", "provinciae", "longissime", "absunt,"],
    ["on-account-of-this", "that", "from", "civilization", "and", "refinement", "of-province", "farthest", "away-they-are,"] ],
  [ ["minimeque", "ad", "eos", "mercatores", "saepe", "commeant", "atque", "ea", "quae", "ad", "effeminandos", "animos", "pertinent", "important,"],
    ["least-too", "to", "those", "[the]-merchants", "often", "resort,", "and", "those-things,", "which", "toward", "to-be-effeminated", "dispositions", "tend,", "in-carry;"] ],
  [ ["proximique", "sunt", "Germanis,", "qui", "trans", "Rhenum", "incolunt,", "quibuscum", "continenter", "bellum", "gerunt."],
    ["nearest-also", "they-are", "to-Germans,", "who", "across", "Rhenus", "dwell,", "whom-with", "constantly", "war", "they-carry-on."] ],
  [ ["Qua", "de", "causa", "Helvetii", "quoque", "reliquos", "Gallos", "virtute", "praecedunt,"],
    ["which", "from", "cause", "Helvetii", "also", "remaining", "Gauls", "in-valor", "surpass,"] ],
  [ ["quod", "fere", "cotidianis", "proeliis", "cum", "Germanis", "contendunt,"],
    ["because", "almost", "in-daily", "battles", "with", "Germans", "they-contend,"] ],
  [ ["cum", "aut", "suis", "finibus", "eos", "prohibent,", "aut", "ipsi", "in", "eorum", "finibus", "bellum", "gerunt."],
    ["when", "either", "from-their-own", "territories", "those", "they-off-hold,", "or", "themselves", "in", "of-those", "[the]-territories", "war", "they-carry-on."] ],
  [ ["Eorum", "una", "pars,", "quam", "Gallos", "obtinere", "dictum", "est,", "initium", "capit", "a", "flumine", "Rhodano;"],
    ["Of-those", "one", "part,", "which", "Gauls", "to-hold", "having-been-said", "is,", "beginning", "takes", "from", "river", "Rhodanus;"] ],
  [ ["continetur", "Garumna", "flumine,", "Oceano,", "finibus", "Belgarum;"],
    ["is-bounded", "by-Garumna", "river,", "by-Ocean,", "by-territories", "of-Belgians;"] ],
  [ ["attingit", "etiam", "ab", "Sequanis", "et", "Helvetiis", "flumen", "Rhenum;"],
    ["to-touches", "indeed", "on-the-side-of", "Sequani", "and", "Helvetii", "river", "Rhenus;"] ],
  [ ["vergit", "ad", "septentriones."],
    ["slopes", "to", "north."] ],
  [ ["Belgae", "ab", "extremis", "Galliae", "finibus", "oriuntur;"],
    ["Belgae", "from", "most-remote", "of-Gaul", "boundaries", "arise;"] ],
  [ ["pertinent", "ad", "inferiorem", "partem", "fluminis", "Rheni;"],
    ["extend", "to", "lower", "part", "of-river", "Rhenus;"] ],
  [ ["spectant", "in", "septentrionem", "et", "orientem", "solem."],
    ["look", "toward", "north", "and", "rising", "sun."] ],
  [ ["Aquitania", "a", "Garumna", "flumine", "ad", "Pyrenaeos", "montes", "et", "eam", "partem", "Oceani", "quae", "est", "ad", "Hispaniam", "pertinet;"],
    ["Aquitania", "from", "Garumna", "river", "to", "Pyrenaean", "mountains", "and", "that", "part", "of-Ocean", "which", "is", "near-to", "Spain", "extends,"] ],
  [ ["spectat", "inter", "occasum", "solis", "et", "septentriones."],
    ["looks", "between", "setting", "of-sun", "and", "north."] ]
];

var i = 0;
var j = 0;

var shown = 0;

function updateVoc() {
	
	var sentence = "";
	
	for(n = 0; n < sentences[i][0].length; n++) {
		if (n == j) {
			sentence += ' <span class="curword">' + sentences[i][0][n] + "</span>";
		} else {
			sentence += " " + sentences[i][0][n];
		}
	}
	
	document.getElementById('v3').innerHTML = sentence;
	
	if (shown == 0) {
		document.getElementById('v1').innerHTML = "";
	} else {
		document.getElementById('v1').innerHTML = sentences[i][1][j];
	}
}

function next() {
	shown++;
	if (shown > 1) {
		shown = 0;
		j++;
		if (j >= sentences[i][0].length) {
			j = 0;
			i++;
			if (i >= sentences.length) {
				i = 0;
				alert('All done!');
			}
		}
	}
	updateVoc();
}

function prev() {
	shown--;
	if (shown < 0) {
		shown = 1;
		j--;
		
		if (j < 0) {
			i--;
			if (i < 0) {
				i = sentences.length - 1;
				alert('All done!');
			}
			j = sentences[i][0].length - 1;
		}
	}
	
	updateVoc();
}

</script>

<body onload="updateVoc()">
<h1 style="text-align:center; color: #60B0C0;">Liber I - Caput I</h1>

<div class="center">
<div id="v3" class="v3"></div>
<div id="v2" class="v2">&nbsp;</div>
<div id="v1" class="v1"></div>


<a href="#" class="button" id="btnprev" onclick="prev()" accesskey="p">&lt;&lt;</a>
<a href="#" class="button" id="btnnext" onclick="next()" accesskey="n">&gt;&gt;</a>


</div>
</body>
</html>
